package com.dale.common.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author Gyt
 * @create 2021-06-17 - 19:26
 */

/**
 * 用于回显给前端的blog数据
 */
@Data
public class BlogDto {
    private Long id;
    private String content;
    private String title;

    private String description;


    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime created;



    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime updated;


    private String avatar;   //作者头像


    private String author;  //作者姓名

    private String video;

    private Long userId;

    private Integer view;  //阅读量

    private Integer likeCount;  //点赞人数
}
